import Vue from 'vue'
import App from './App.vue'
import {
  Button,
  Tag,
  Header,
  Main,
  Footer,
  Container,
  Menu,
  MenuItem,
  Col,
  Row,
  Input,
  Badge,
  Dropdown,
  DropdownItem,
  DropdownMenu,
  Tabs,
  TabPane,
  Card
} from 'element-ui'
import VueContentPlaceholders from 'vue-content-placeholders'
import VeLine from 'v-charts/lib/line'

import router from './router'
import store from './store'
import './registerServiceWorker'

// Element Ui Component
Vue.use(Button)
Vue.use(Tag)
Vue.use(Header)
Vue.use(Main)
Vue.use(Footer)
Vue.use(Container)
Vue.use(Menu)
Vue.use(MenuItem)
Vue.use(Col)
Vue.use(Row)
Vue.use(Input)
Vue.use(Badge)
Vue.use(Dropdown)
Vue.use(DropdownItem)
Vue.use(DropdownMenu)
Vue.use(Tabs)
Vue.use(TabPane)
Vue.use(Card)

// placeholder
Vue.use(VueContentPlaceholders)

// v-charts
Vue.component(VeLine.name, VeLine)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')